package com.symaster.common.geom.util;

/**
 * @author yinmiao
 * @version 2022-01-04 21:27
 */
public class UnitUtil {

    public static double pxToMm(double px, double dpi) {
        return px / dpi * 25.4;
    }

    public static double mmToPx(double mm, double dpi) {
        return mm * dpi / 25.4;
    }
}
